package org.phoenixframework.common.tools.function;

import java.util.function.Consumer;

/**
 * Created by IntelliJ IDEA.
 *
 * @author gaodun
 * DateTime: 2021/12/24 17:22
 * Description:
 */
@FunctionalInterface
public interface RunnableFunction {

    /**
     * 分支操作
     *
     * @param trueHandle 为true时要进行的操作
     * @param falseHandle 为false时要进行的操作
     * @return void
     **/
    void trueOrFalseHandle(Runnable trueHandle, Runnable falseHandle);
}
